let btn = document.getElementsByTagName('button')[0]

btn.addEventListener('click', function () {
    alert('你点击了button')
}, false)